package com.zhentao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhentao.model.common.business.dto.BusinessShopAuditDto;
import com.zhentao.model.common.business.dto.BusinessShopDto;
import com.zhentao.model.common.business.pojo.BusinessShop;
import com.zhentao.model.common.dtos.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

/**
* @author liu
* @description 针对表【business_shop】的数据库操作Service
* @createDate 2024-09-15 09:31:44
*/
public interface BusinessShopService extends IService<BusinessShop> {
    /**
     * 商家列表
     * 根据名称模糊查  分页  根据状态查
     * @param businessShopDto  查询列表--条件
     * @return
     */
    ResponseResult shopList(BusinessShopDto businessShopDto);

    /**
     * 根据ID进行对店铺进行信息审核
     *
     * @return
     */
    ResponseResult updShopAudit(BusinessShopAuditDto businessShopAuditDto);


    /**
     * 店铺详情--根据账号ID进行查看当前的店铺信息
     * @param
     * @return
     */
    ResponseResult selShopOneById(Integer id);





    /**
     * 提交店铺申请
     * @param businessShop
     * @return
     */
    ResponseResult addBusiness(BusinessShop businessShop) throws Exception;

    /**
     * 查看个人店铺详细信息
     * @param userId
     * @return
     */

    ResponseResult findById(Integer userId);
    /**
     * 商铺驳回重新进行修改
     * @param businessShop
     * @return
     * @throws Exception
     */

    ResponseResult update(BusinessShop businessShop) throws Exception;

    /**
     * 修改店铺状态
     * @param shopId
     * @return
     */

    ResponseResult upstate(Integer shopId);

    /**
     * 上传店铺logo
     * @param file
     * @return
     */
    ResponseResult upLogo(MultipartFile file);
}
